home *** CD-ROM | disk | FTP | other *** search
- //=========================================================
- //
- // newmbox.c
- //
- // void newmbox(char *mbox)
- //
- //=========================================================
-
- // $Id: newmbox.c,v 1.3 1994/02/12 01:28:10 gbj Exp user $
-
- /*
- $Log: newmbox.c,v $
- * Revision 1.3 1994/02/12 01:28:10 gbj
- * Removed index display as main() now does it.
- *
- * Revision 1.2 1994/02/08 23:33:54 gbj
- * First public release.
- *
- * Revision 1.1 1994/02/08 03:16:14 gbj
- * Initial revision
- *
- */
-
- #include "mailer.h"
-
- void newmbox(char *mbox)
- {
- char tbox[128];
- int res;
-
- strcpy(tbox, mailpath);
- strcat(tbox, "\\");
- strcat(tbox, mbox);
- strcat(tbox, ".txt");
-
- if (access(tbox, 0) == 0)
- {
- cmsg=-1;
- maxmsgno=-1;
- res=loadix(mbox);
- if (res == 3)
- {
- fprintf(stderr, "newmbox: loadix returned %d\n", res);
- return;
- }
- if (res == 1 || res == 2)
- {
- cmsg=-1;
- maxmsgno=-1;
- }
- else
- {
- cmsg=0;
- }
- }
- return;
- }
-